package com.pactera.demo.base.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 *
 * </p>
 *
 * @author chang.zhou
 * @version version
 * @date Created in 2020/2/27 18:31
 */
@Data
public class RoleDto {

    @NotEmpty(message = "角色名称为空")
    @Length(min = 2,max = 15)
    private String roleName;
    @NotEmpty(message = "角色名称为空")
    @Length(min = 5,max = 15,message = "角色编码必须以ROLE_为前缀，长度最大15")
    private String roleCode;

    private String comments;
}
